import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '../views/Main.vue'
import Login from '../views/Login.vue'

Vue.use(VueRouter)


const routes = [

    {
        path: '/',
        component: Main,
        name:'Main',
        redirect: '/login',
        children: [
            // { path: 'home',name: 'home' ,component: Home },
            // { path: 'user', name: 'user',component: User },
            // { path: 'mall', name: 'mall',component: Mall },
            // { path: 'page1',name: 'page1', component: Page1 },
            // { path: 'page2', name: 'page2',component: Page2 }
        ],
        

    },
    {path:'/login',name:'login',component:Login},

 

]

const router = new VueRouter({
    routes
})

export default router